package com.ai.service.made;


import com.ai.common.CommonResponse;
import com.ai.entity.alarm.TriggerAlarmParam;
import com.ai.entity.made.camera.CameraIdBO;

import java.util.Map;

public interface AlgorithmCameraService {

    /**
     * 打开摄像头直播
     */
    CommonResponse onOpen(CameraIdBO cameraIdBO);

    /**
     * 关闭摄像头
     */
    CommonResponse onClose(CameraIdBO cameraIdBO);


    /**
     * 通过功能开关算法
     *
     * @param type
     * @param state
     */
    void bulkSwitchForTelegram(int type, int state, Integer delayTime) throws Exception;


    void bulkSwitchForTelegram(int type, int state, Integer delayTime, Map<String, Object> extendedProperties);


    CommonResponse detectionStart();

    CommonResponse triggerAlarm(TriggerAlarmParam alarmType);

}
